
import java.util.HashSet;
import java.util.Set;


public class TFile 
{
    private Long id;
    private String content;
    private String type;
    private String language;
    private Long size;
    private Set crypto_files = new HashSet();
    private Set arch_files = new HashSet();
    TFile(){}
    public TFile(String content, String type, String language, Long size)
    {
        this.content = content;
        this.type = type;
        this.language = language;
        this.size = size;
    }
    public void addCryptoFile(TCryptoFile crypto_file) 
    {
        crypto_file.setfile(this);
        crypto_files.add(crypto_file);
    }
    public void addArchiveFile(TArchiveFile arch_file)
    {
        arch_file.setfile(this);
        arch_files.add(arch_file);
    }
    public Long getid() 
    {
        return id;
    }
    public void setid(Long id) 
    {
        this.id = id;
    }
    public String getcontent()
    {
        return content;
    }
    public void setcontent(String content)
    {
        this.content = content;
    } 
    public String gettype()
    {
        return type;
    }
    public void settype(String type)
    {
        this.type = type;
    }
    public String getlanguage()
    {
        return language;
    }
    public void setlanguage(String language)
    {
        this.language = language;
    }
    public Long getsize()
    {
        return size;
    }
    public void setsize(Long size)
    {
        this.size = size;
    }
    public Set getcrypto_files()
    {
        return crypto_files;
    }
    public void setcrypto_files(Set crypto_files)
    {
        this.crypto_files = crypto_files;
    }
    public Set getarch_files()
    {
        return arch_files;
    }
    public void setarch_files(Set arch_files)
    {
        this.arch_files = arch_files;
    }
}
